package com.cn.mapper;

import com.cn.pojo.ShoppingCartItem;
import com.cn.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    //    登录
    User loginUser(@Param("user") User user);
    User searchByUserId(@Param("user") User user);
    User searchMobile(@Param("user") User user);
    int insertUser(@Param("user") User user);
    int editInfo(@Param("user") User user);
    int  searchCartNumbers(@Param("cart") ShoppingCartItem cart);

    void updateAddress(@Param("user") User user);
   List<User> findAllUser();
   void logout(@Param("userId") int userId);
}
